#include <stdio.h>
#include <stdlib.h>

#include "merge.h"

void visit(ElemType e)
{
    printf("%d\t",e);
}


int main()
{
    LinkList la,lb,lc;
    int ret;

    ret = CreateList_Head(&la,3);
    if (ret!=OK)
    {
        printf("List create failed!\n");
    }
    ListTraverse(la,visit);

    ret = CreateList_Head(&lb,4);
    if (ret!=OK)
    {
        printf("List create failed!\n");
    }
    ListTraverse(lb,visit);

    ret = MergeList(la,lb,&lc);
    if (ret!=OK)
    {
        printf("Merge List failed!\n");
    }
     
    ListTraverse(lc,visit); 
    
    DestroyList(&la);
    DestroyList(&lc);

    exit(0);
}